package com.ywjt.pinkelephant.my.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.ywjt.pinkelephant.R;
import com.ywjt.pinkelephant.base.BaseActivity;
import com.ywjt.pinkelephant.my.adapter.VipPayMentAdapter;
import com.ywjt.pinkelephant.my.model.PeyMethodModel;

import java.util.ArrayList;
import java.util.List;

public class ActivityVipPayMent extends BaseActivity implements View.OnClickListener {

    private RecyclerView rcCommon;
    private VipPayMentAdapter mealAdapter;
    private List<PeyMethodModel> data;
    public static void actionStart(Context context ) {
        Intent intent = new Intent(context, ActivityVipPayMent.class);
        context.startActivity(intent);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){

        }
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.activity_vip_center_payment;
    }

    @Override
    protected void initView() {
        setTitleText("粉象会员");
        rcCommon=findViewById(R.id.rcCommon);
        data=new ArrayList<>();
        PeyMethodModel methodModel=new PeyMethodModel();
        methodModel.setPaylogo(R.mipmap.icon_pay_ali);
        methodModel.setPayname("支付宝");
        methodModel.setSelect(true);
        data.add(methodModel);
        PeyMethodModel methodwx=new PeyMethodModel();
        methodwx.setPaylogo(R.mipmap.icon_pay_wx);
        methodwx.setPayname("微信");
        methodwx.setSelect(false);
        data.add(methodwx);
        PeyMethodModel methodbalance=new PeyMethodModel();
        methodbalance.setPaylogo(R.mipmap.icon_pay_balance);
        methodbalance.setPayname("余额");
        methodbalance.setSelect(false);
        data.add(methodbalance);
        mealAdapter=new VipPayMentAdapter(data);
        rcCommon.setLayoutManager(new LinearLayoutManager(ActivityVipPayMent.this));
        rcCommon.setAdapter(mealAdapter);
    }

    @Override
    protected void initData() { }

    /**
     * 获取要使用的标题栏样式(此函数由子类重写)
     * @return
     */
    @Override
    protected int getTitleBarType() {
        return 0;
    }

}
